using System.ComponentModel;
using SF.Code.Extension.HttpHelper.Downloader;

namespace SG.Ling.AutoTranslator.Translation
{
    public class BatchTranslatorBase : WebClientBag<TranslationKey, TranslationTuple, TranslationCache, TranslationResultEventArgs, TranslationConverter>
    {
        public BatchTranslatorBase()
            : this(null)
        {
            // calls this
        }
        
        protected BatchTranslatorBase(IContainer container)
            : base(container)
        {
            // calls base
        }

        protected override TranslationCache GetDefaultCache()
        {
            return new TranslationCache(Container);
        }

        protected override TranslationConverter GetDefaultConverter()
        {
            return new TranslationConverter(Container);
        }
    }
}